import { Injectable } from '@nestjs/common';

@Injectable()
export class UserService {
    async getUserInfo() {
        return {
            "errorCode": 0,
            "data": {
                "userLoginId": "mandy",
                "userLoginName": "mandy",
                "userName": "test",
                "nickname": "test",
                "position": "MANAGER",
                "contactNumber": "13652369632",
                "cellphone": "13652369632",
                "gender": "1",
                "userParentId": "mandy",
                "enabled": true,
                "bindPhone": false,
                "needChangePassword": false,
                "createdStamp": 1435825405000,
                "userParentName": "test",
                "authenticated": "N",
                "registerCompleted": true,
                "entryApplied": false,
                "appUser": false,
                "joinParty": true,
                "updateTimes": 0,
                "productStoreId": "4400015831"
            }
        }
    }

    async getUserMenus() {
        return {
            "code": 200,
            "errorMessage": null,
            "data": [{
                "resourceId": "1662490683233935360",
                "menuId": "SELLER_HOME",
                "menuName": "首页",
                "menuUrl": "/admin#/team1",
                "menuCss": "",
                "parentId": "195",
                "sequence": 1,
                "parentMenu": null,
                "iconUrl": "https://pic-market.cassmall.com/mall/menuIconUrl/1595485464788_kNH4zmbxx6mSdHKm8dZEZdMnT34BeQ4j.svg",
                "subMenu": null
            }, {
                "resourceId": "137",
                "menuId": "finaceForSupplier",
                "menuName": "menu",
                "menuUrl": "",
                "menuCss": "",
                "parentId": "195",
                "sequence": 350,
                "parentMenu": null,
                "iconUrl": null,
                "subMenu": [{
                    "resourceId": "584493526289735680",
                    "menuId": "cassBill",
                    "menuName": "menu-1",
                    "menuUrl": "/admin#/team2",
                    "menuCss": "",
                    "parentId": "137",
                    "sequence": 9,
                    "parentMenu": null,
                    "iconUrl": null,
                    "subMenu": null
                }, {
                    "resourceId": "584493526289735682",
                    "menuId": "bill",
                    "menuName": "menu-2",
                    "menuUrl": "/admin#/team2/test",
                    "menuCss": "",
                    "parentId": "137",
                    "sequence": 10,
                    "parentMenu": null,
                    "iconUrl": null,
                    "subMenu": null
                }]
            }, {
                "resourceId": "1662490683233935361",
                "menuId": "menu2",
                "menuName": "menu2",
                "menuUrl": "/menu2",
                "menuCss": "",
                "parentId": "195",
                "sequence": 1,
                "parentMenu": null,
                "iconUrl": "https://pic-market.cassmall.com/mall/menuIconUrl/1595485464788_kNH4zmbxx6mSdHKm8dZEZdMnT34BeQ4j.svg",
                "subMenu": null
            }]
        }
    }
}
